package cn.miju.ser.alipay.constant;

/**
 * <pre>
 * 业务常量类
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-03-10 11:38
 */
public class AlipayConstant {

    // 交易状态
    public static final AlipayConstant TRADESTATUS_WAIT_PAY = new AlipayConstant("WAIT_BUYER_PAY", "交易创建，等待买家付款");
    public static final AlipayConstant TRADESTATUS_SUCCESS = new AlipayConstant("TRADE_SUCCESS", "交易支付成功");
    public static final AlipayConstant TRADESTATUS_CLOSE = new AlipayConstant("TRADE_CLOSED", "未付款交易超时关闭，或支付完成后全额退款");
    public static final AlipayConstant TRADE_FINISHED = new AlipayConstant("TRADE_FINISHED", "交易结束，不可退款");


    private String code;
    private String description;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public AlipayConstant(String code, String description) {
        this.code = code;
        this.description = description;
    }
}
